<table class="table table-bordered table-hover dicTable">
      <thead>
        <tr>
            <th width="24%">${_res["systemManage.dictCode"]}</th>
            <th width="24%">${_res["systemManage.dictName"]}</th>
            <th width="24%">${_res["system.memo"]}</th>
            <th width="28%">${_res["system.operator"]}</th>
         </tr>
      </thead>
      <tbody>
         <% for (dict in splitPage.list!){%>
           <tr style="cursor:pointer" onclick="initDictEvent('${dict.code!}',this)" ${decode(dictLP.index,1,"class='trTdBgDDD'","")} >
            <td>${dict.code!}</td>
            <td id= ${dict.code!}>${dict.name!}</td>
            <td>${dict.remark!}</td>
            <td>
            	<% if(hasPrivilegeUrl("dictEdit")){ %>
               		<button type="button" class="btn btn-sm btn-link" data-toggle="modal" data-target="#dictModalEdit" data-whatever="${dict.id!}">${_res["system.edit"]}</button>
               	<% } %>
              	<% if(hasPrivilegeUrl("dictDelete")){ %>
               		<button type="button" class="btn btn-sm btn-link" onClick="ajaxDelete('/platform/dict/delete/${dict.id!}','dictWrap')">${_res["system.delete"]}</button>
           		<% } %>
            </td>
           </tr>
         <%}%>
      </tbody>
</table>

<div id="splitPageDiv">
	<#page formId="searchForm"  />
</div>

<script>
/*字典 tr选中是添加突出颜色*/
function initDictEvent(code,tr){
		$(tr).siblings().removeClass("trTdBgDDD");
		$(tr).addClass('trTdBgDDD');
		
		ajaxDiv('dictItemWrap','/platform/dict/queryDictItems/'+ code);
		var dictName = $("#"+code).text();
		$("#dictName").text(dictName);
		$("#dictCode").val(code);
			
}
</script>